<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>
<script>
function modifyUserPerson(id_){
	$.post('./userperson/modifyUserPerson',{id:id_},function(resultadoHTML) {
		$('#content').html(resultadoHTML);
	});
}
</script>

<table class="table table-striped table-bordered table-condensed">
	<tr>
		<td>Id&nbsp;&nbsp;&nbsp;<a href="#" onclick="modifyUserPerson( <s:property value="userPerson.id" />)"><img src="img/lapiz.jpg"/></a></td>
		<td><s:property value="userPerson.id" />
		</td>
	</tr>

	<tr>
		<td>User</td>
		<td><s:property value="userPerson.account.userName" /></td>
	</tr>

	<tr>
		<td>Name</td>
		<td><s:property value="userPerson.name" /></td>
	</tr>
	
		<tr>
		<td>Last name</td>
		<td><s:property value="userPerson.lastName" /></td>
	</tr>

	<tr>
		<td>E-mail</td>
		<td><s:property value="userPerson.mail" /></td>
	</tr>
	
	<tr>
		<td>User type</td>
		<td><s:property value="userPerson.userType.name" /></td>
	</tr>
	

</table>
